package de.uniluebeck.itm.nettyprotocols.tinyos;

import org.jboss.netty.buffer.ChannelBuffer;

import static de.uniluebeck.itm.util.StringUtils.fromStringToByteArray;
import static org.jboss.netty.buffer.ChannelBuffers.wrappedBuffer;

public interface TinyOsSerialTestConstants {

	final String PACKET_1_PAYLOAD_STRING = "0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf7";

	final String PACKET_2_PAYLOAD_STRING = "0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf8";

	final String PACKET_3_PAYLOAD_STRING = "0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf9";

	final String PACKET_4_PAYLOAD_STRING = "0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xfa";

	final String PACKET_1_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf7 0x7b 0xcd";

	final String PACKET_2_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf8 0x94 0x3c";

	final String PACKET_3_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf9 0xb5 0x2c";

	final String PACKET_4_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xfa 0xd6 0x1c";

	final String CRC_INVALID_PACKET_1_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf7 0x7b 0xab";

	final String CRC_INVALID_PACKET_2_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf8 0x12 0x34";

	final String CRC_INVALID_PACKET_3_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xf9 0xa5 0x2c";

	final String CRC_INVALID_PACKET_4_STRING = "0x45 0x0 0xff 0xff 0x0 0x0 0x2 0x0 0x89 0x2 0xfa 0xd0 0xbc";

	final ChannelBuffer ENCODED_PACKET_1 = wrappedBuffer(fromStringToByteArray(PACKET_1_STRING));

	final ChannelBuffer ENCODED_PACKET_2 = wrappedBuffer(fromStringToByteArray(PACKET_2_STRING));

	final ChannelBuffer ENCODED_PACKET_3 = wrappedBuffer(fromStringToByteArray(PACKET_3_STRING));

	final ChannelBuffer ENCODED_PACKET_4 = wrappedBuffer(fromStringToByteArray(PACKET_4_STRING));

	final ChannelBuffer DECODED_PACKET_1 = wrappedBuffer(fromStringToByteArray(PACKET_1_PAYLOAD_STRING));

	final ChannelBuffer DECODED_PACKET_2 = wrappedBuffer(fromStringToByteArray(PACKET_2_PAYLOAD_STRING));

	final ChannelBuffer DECODED_PACKET_3 = wrappedBuffer(fromStringToByteArray(PACKET_3_PAYLOAD_STRING));

	final ChannelBuffer DECODED_PACKET_4 = wrappedBuffer(fromStringToByteArray(PACKET_4_PAYLOAD_STRING));

	final ChannelBuffer CRC_INVALID_ENCODED_PACKET_1 =
			wrappedBuffer(fromStringToByteArray(CRC_INVALID_PACKET_1_STRING));
	final ChannelBuffer CRC_INVALID_ENCODED_PACKET_2 =
			wrappedBuffer(fromStringToByteArray(CRC_INVALID_PACKET_2_STRING));
	final ChannelBuffer CRC_INVALID_ENCODED_PACKET_3 =
			wrappedBuffer(fromStringToByteArray(CRC_INVALID_PACKET_3_STRING));
	final ChannelBuffer CRC_INVALID_ENCODED_PACKET_4 =
			wrappedBuffer(fromStringToByteArray(CRC_INVALID_PACKET_4_STRING));

}
